package main

import "fmt"

func main() {
	// 只读管道
	var readChan <- chan int
	readChan = make(chan int, 8)
	nu := <- readChan
	fmt.Println(nu)
	//me := 1
	//readChan <- me

	// 只写管道

	var writeChan chan <- int
	writeChan = make(chan int, 1)
	me := 2
	writeChan <- me
	// 读
	//<- writeChan



}
